
        <%@page import="java.util.Date"%>
<%@page import="util.DBConn" pageEncoding="UTF-8"%>
<%@page import="java.sql.*"%>
<%@page import="java.util.ArrayList"%>
<%
request.setCharacterEncoding("gbk");
      String path = request.getContextPath();
       String id = request.getParameter("id");
       String title = request.getParameter("title");
       
       Connection conn = DBConn.getConn();
       PreparedStatement pst = conn.prepareStatement("insert into tip values(?,?,?)");
       pst.setString(1,title);
       pst.setInt(2, Integer.parseInt(id));
       pst.setDate(3,new java.sql.Date(new java.util.Date().getTime()));
       pst.execute();
       conn.close();
       
       //request.getRequestDispatcher("/users/yudingji_list.jsp").forward(request, response);
       
       %>
       
     <script>
         alert("提交成功!")
         window.location.href="<%=path%>/users/yudingji_list.jsp";
     </script>
       